#!/usr/bin/env python
import os
import pymysql
from app import create_app
from flask_script import Manager
from flask_migrate import MigrateCommand

pymysql.install_as_MySQLdb()

app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
manager.add_command("db", MigrateCommand)


if __name__ == "__main__":
    manager.run()
